import request from "@/utils/request";

// 待办流程查询列表
export function officeTodoList(data, businessCode) {
  return request({
    url: "/system/workflow/process/mytodo/" + businessCode,
    method: "post",
    data: data,
  });
}
// 已办流程查询列表
export function officeFinishedList(data, businessCode) {
  return request({
    url: "/system/workflow/process/myfinished/" + businessCode,
    method: "post",
    data: data,
  });
}
// 查询流程列表
export function leaveList(query) {
  return request({
    url: "/system/workflow/office/leave_list",
    method: "get",
    params: query,
  });
}
// 申请发起
export function leaveOffice() {
  return request({
    url: "/system/workflow/office/getProcessForm",
    method: "get",
  });
}
// 所属部门下拉框
export function deptListAll() {
  return request({
    url: "/system/dept/listAll",
    method: "get",
  });
}
// 状态下拉
export function mytodoSelectStatus(businessCode) {
  return request({
    url: "/system/workflow/process/mytodoSelectStatus/" + businessCode,
    method: "GET",
  });
}
// 已办、管理状态下拉
export function getTaskName(query) {
  return request({
    url: "/system/workflow/process/getTaskName",
    method: "GET",
    params: query,
  });
}

//导出
export function exportExe(data) {
  return request({
    url: "/cm-system/export/exportElecLeaveForm",
    method: "post",
    data,
    responseType: "blob",
  
  });
}
